<template>
  <div class="bg-gray-50">
    <div class="nav">
      <div class="logo">
        <img src="https://img.alicdn.com/tfs/TB13DzOjXP7gK0jSZFjXXc5aXXa-212-48.png">
        <span class="login-title">登录</span>
      </div>
    </div>

    <div class="login-body">
      <div class="logo-center">
        <LoginContainer @login="login"/>
      </div>
      <hr/>
      <div style="margin: 20px 20px">
        xxxx
      </div>
    </div>

  </div>

</template>

<script>
import LoginContainer from './component/loginContainer.vue'
import {defineComponent,reactive,toRefs } from 'vue';
export default defineComponent({
  name: "login",
  components: {LoginContainer},
  setup() {
     const data = reactive({
       login: (param) => {
         console.log(JSON.stringify(param))
       }
     })
    return {
       ...toRefs(data)
    }
  }
})
</script>

<style scoped>
.nav{
  height: 66px;
  width: 100%;
  background: white;
  z-index: 999;
  position: relative;
  top: 0;
  display: inline-block;
  line-height: 18px;
  font-size: 14px;
  color: rgb(55,61,65);
  box-sizing: border-box;
  box-shadow: 0 1px 3px #ccc;
}
.logo{
  margin-left: 100px;
  margin-right: 24px;
  line-height: 66px;
  height: 66px;
  float:left;
}
img{
  width: 129px;
  height: 27px;
  display: inline-block;
  margin-right: 20px;
}

.login-title{
  text-align: left;
  font-size: 24px;
  color: #181818;
  letter-spacing: 0;
  display: inline-block;
  padding: 0 10px;
  vertical-align: bottom;
  border-left: 1px solid #999;
  position: absolute;
  line-height: 30px;
  top: 50%;
  transform: translateY(-50%);
}

.login-body{
  margin: 50px 100px;
}
.logo-center{
  width: 90%;
  height: 400px;
  box-shadow: 1px 1px 5px #000000;
  margin: 0 auto 50px auto;
}
</style>
